/**
 * Picture module
 */
import React from 'react';

class Picture extends React.Component {
    render() {
        const { widget } = this.props;
        const src = widget.src || widget.url;
        return (
          <div className="render-picture" style={{ display: 'inline' }}>
            <img src={src} style={{ opacity: widget.opacity }} />
          </div>
        );
    }
}
Picture.defaultProps = {
    name: "picture",
    type: 9,
    offset_x: 0,
    offset_y: 0,
    type_display: $._('Picture'),
    icon_class: "icon-image"
}

module.exports = Picture;
